<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title></title>
		<script language="javascript">
			// function Reflash() {
			// 	alert(window.event.keyCode);				
			// }
			// document.onkeypress = Reflash;
			 
			 document.onkeypress = function() {
			 	alert(window.event.keyCode);				
			 };
		</script>

	</head>

	<body>
		<input type="text" />
	</body>

</html>